package com.SB.Result;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel("统一响应实体")
@SuppressWarnings("all")
public class Result<T> implements Serializable {

    @ApiModelProperty("是否操作成功")
    private Boolean success;

    @ApiModelProperty("响应代码")
    private int code;

    @ApiModelProperty("返回响应信息")
    private String message;

    @ApiModelProperty("返回数据结果")
    private T data;
 }  